package com.qingfeng.core.dao.qingfeng;

import com.qingfeng.core.entity.qingfeng.BalanceDetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @description: 余额明细
 * @author:LWY
 * @date: 2017/11/23 17:06
 * @modified:
 */
public interface BalanceDetailDao extends MongoRepository<BalanceDetail, String> {

    /**
     * 根据module和user查出明细并且按时间倒序排序
     *
     * @param module
     * @return
     */
    Page<BalanceDetail> findByModuleAndUserOrderByCreateTimeDesc(int module, String user, Pageable pageable);

}
